#ifndef __CAN_RW_H__
#define __CAN_RW_H__
#include "can_test.h"

/* 打开 CAN 设备 */
int open_can(void *parent, const char *name, struct can_dev_t *dev, uint8_t index);
int set_can_baud_rate(int fd, struct can_bittiming *arbitration_baud, struct can_bittiming *data_baud);
int start_can(int fd);
void *send_can_thread(void *arg);
void *recv_can_thread(void *arg);

#endif /* __CAN_RW_H__ */
